<?php

    $name       =   $_POST['name'];
    $username   =   $_POST['username'];
    $pass       =   $_POST['password'];
    $password   =   MD5($pass);
    $email      =   $_POST['email'];
    $address    =   $_POST['address'];
    $contact    =   $_POST['contact'];
    $reg_on     =   date("d-m-Y");
   
include "db_connect.php";
$mak_admin = " INSERT INTO `admins` (`id`, `reg_on`, `name`, `username`, `password`, `address`, `email`, `contact`)
               VALUES (NULL, '$reg_on', '$name', '$username', '$password', '$address', '$email', '$contact') " ;

if (mysql_query($mak_admin))
    header ("location:../admin.php?page=admin_list");
else {
    header ("location:../admin.php?page=admin_list");
}


?>
